Only issue lexical cookie warning for elisp files
authorMattias Engdegård <mattiase@acm.org>
Sat, 4 May 2024 08:08:19 +0000 (10:08 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 4 May 2024 08:35:24 +0000 (10:35 +0200)
commit1121f17d7c4bc3b71edcd0799b894f50aa3a715e
tree87c80b72614ae2e2e53ee3c697d0479bc482ba1c
parent41dd78cd362a80f1becc006a37f163119b93df10
Only issue lexical cookie warning for elisp files

* src/lread.c (string_suffix_p): New.
(warn_missing_cookie): Suppress warning for files not ending in ".el",
except ".emacs".
* etc/NEWS: Update accordingly, and mention how the warning can be
suppressed.
etc/NEWS
src/lread.c